package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * The persistent class for the repairlist database table.
 * 
 */
@Entity
@NamedQuery(name = "Repairlist.findAll", query = "SELECT r FROM Repairlist r")
public class Repairlist implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "rep_id")
	private int repId;

	@Column(name = "rep_cost")
	private BigDecimal repCost;

	@Temporal(TemporalType.DATE)
	@Column(name = "rep_date")
	private Date repDate;

	@Column(name = "rep_describe")
	private String repDescribe;

	@Column(name = "rep_address")
	private String repAddress;

	@Column(name = "rep_name")
	private String repName;

	@Column(name = "rep_phone")
	private String repPhone;

	@Column(name = "rep_remark")
	private String repRemark;

	@Temporal(TemporalType.DATE)
	@Column(name = "rep_uniontime")
	private Date repUniontime;
	
	public int getIsShow() {
		return isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}

	@Column(name = "is_show")
	private int isShow;
	// bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name = "cus_id")
	private Customer customer;

	// bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name = "rep_type")
	private Dictionary dictionary1;

	// bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name = "rep_state")
	private Dictionary dictionary2;

	// bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name = "rep_cat")
	private Dictionary dictionary3;

	// bi-directional many-to-one association to Good
	@ManyToOne
	@JoinColumn(name = "goo_id")
	private Good good;

	// bi-directional many-to-one association to Linkman
	@ManyToOne
	@JoinColumn(name = "lin_id")
	private Linkman linkman;

	// bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name = "user_id")
	private User user;

	// bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name = "rep_dept")
	private Dept repDept;

	public Repairlist() {
	}

	public int getRepId() {
		return this.repId;
	}

	public void setRepId(int repId) {
		this.repId = repId;
	}

	public BigDecimal getRepCost() {
		return this.repCost;
	}

	public void setRepCost(BigDecimal repCost) {
		this.repCost = repCost;
	}

	public Date getRepDate() {
		return this.repDate;
	}

	public void setRepDate(Date repDate) {
		this.repDate = repDate;
	}

	public String getRepDescribe() {
		return this.repDescribe;
	}

	public void setRepDescribe(String repDescribe) {
		this.repDescribe = repDescribe;
	}

	public String getRepName() {
		return this.repName;
	}

	public void setRepName(String repName) {
		this.repName = repName;
	}

	public String getRepPhone() {
		return this.repPhone;
	}

	public void setRepPhone(String repPhone) {
		this.repPhone = repPhone;
	}

	public String getRepRemark() {
		return this.repRemark;
	}

	public void setRepRemark(String repRemark) {
		this.repRemark = repRemark;
	}

	public String getRepAddress() {
		return repAddress;
	}

	public void setRepAddress(String repAddress) {
		this.repAddress = repAddress;
	}

	public Dept getRepDept() {
		return repDept;
	}

	public void setRepDept(Dept repDept) {
		this.repDept = repDept;
	}

	public Date getRepUniontime() {
		return this.repUniontime;
	}

	public void setRepUniontime(Date repUniontime) {
		this.repUniontime = repUniontime;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Dictionary getDictionary1() {
		return this.dictionary1;
	}

	public void setDictionary1(Dictionary dictionary1) {
		this.dictionary1 = dictionary1;
	}

	public Dictionary getDictionary2() {
		return this.dictionary2;
	}

	public void setDictionary2(Dictionary dictionary2) {
		this.dictionary2 = dictionary2;
	}

	public Dictionary getDictionary3() {
		return this.dictionary3;
	}

	public void setDictionary3(Dictionary dictionary3) {
		this.dictionary3 = dictionary3;
	}

	public Good getGood() {
		return this.good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	public Linkman getLinkman() {
		return this.linkman;
	}

	public void setLinkman(Linkman linkman) {
		this.linkman = linkman;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}